#include <REGX52.H>
void Delay1ms(unsigned int xms)		//@12.000MHz
{
	unsigned char i, j;
	while(xms)
	{
	i = 2;
	j = 239;
		do
		{
			while (--j);
		} while (--i);
		xms--;
	}
}
void main()
{
	while(1)
	{
		P2=0xfe;
		Delay1ms(1000);
		P2=0xfd;
		Delay1ms(100);
		P2=0xfb;
		Delay1ms(1000);
		P2=0xf7;
		Delay1ms(100);
		P2=0xef;
		Delay1ms(1000);
		P2=0xdf;
		Delay1ms(100);
		P2=0xbf;
		Delay1ms(1000);
		P2=0x7f;
		Delay1ms(100);
	}
}